using System;
using System.Collections;
using System.Collections.Specialized;
using System.Configuration;

namespace Grebok.Persistence.AdoNet
{
	/// <summary>
	/// Summary description for ProviderHelper.
	/// </summary>
	internal class ProviderHelper
	{
		private static string ConfigNode = "Grebok.Persistence.AdoNet";
		private static string connectionString = string.Empty;

		static ProviderHelper()
		{
            NameValueCollection values = (NameValueCollection)ConfigurationManager.GetSection(ConfigNode);
			connectionString = values["ConnectionString"];
		}

		public static string ConnectionString
		{
			get { return connectionString; }
		}

        public static LockMode LockMode
        {
            get { return LockMode.Nothing; }
        }
	}
}
